<!--
 * @Description: 首页组件
 * @Author: yue
 * @Date: 2022-08-29 19:02:46
 * @LastEditors: yue
 * @LastEditTime: 2022-09-04 13:56:53
-->

<template>
  <div class="dashboard-container">
    <div class="dashboard-text">name: {{ name }}</div>
    <page-tools :show-before="true">
      <template #before>
        <el-alert title="afasdfasdfaf"></el-alert>
      </template>
      <template #after>
        <el-button>asdfasdf</el-button>
      </template>
    </page-tools>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import PageTools from '@/components/PageTools'

export default {
  name: 'Dashboard',
  components: {
    PageTools
  },
  computed: {
    ...mapGetters(['name'])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
